getTextBaselineShifts

abstract fun getTextBaselineShifts(block: DesignBlock, from: Int = -1, to: Int = -1): List<Float>

Returns the unique baseline shift values across the grapheme range, in design units. Experimental: this API may change in a minor release.

Return

the unique baseline shift values in text order.

Parameters

block

the text block whose baseline shift values should be returned.

from

the start index of the grapheme range. Negative falls back to the current cursor/selection start when editing, or the start of the entire text otherwise.

to

the grapheme index after the last grapheme. Negative falls back to the current cursor/selection end when editing, or the end of the entire text otherwise.